import {Injectable} from '@angular/core';
import {BehaviorSubject, Observable, Subject} from "rxjs";

@Injectable({
  providedIn: 'root'
})
export class MsdsIdService {
  private MsdsIdStore = new BehaviorSubject<number>(-1);

  constructor() {
  }

  setMsdsIdStore(componentName: number): void {
    this.MsdsIdStore.next(componentName);
  }

  getMsdsIdStoreStore(): Observable<number> {
    return this.MsdsIdStore.asObservable();
  }

}
